package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 秒杀结果表
 * @TableName seckill_result
 */
@TableName(value ="seckill_result")
@Data
public class SeckillResult implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 商品ID
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 活动ID
     */
    @TableField(value = "activity_id")
    private Long activityId;

    /**
     * 秒杀结果(0:失败,1:成功)
     */
    @TableField(value = "result")
    private Integer result;

    /**
     * 秒杀时间
     */
    @TableField(value = "seckill_time")
    private LocalDateTime seckillTime;

    @TableField(value = "isdel")
    @TableLogic
    private Integer isdel;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}